import {
  createRouter,
  createWebHistory,
  type RouteRecordRaw,
} from "vue-router";
import BallControl from "../views/BallControl.vue";
const routes: RouteRecordRaw[] = [
  {
    path: "/ball",
    name: "ball",
    component: BallControl,
    meta: {
      title: "Ball Control",
      root: true,
    },
  },
  {
    path: "/",
    name: "login",
    component: () => import("../views/LoginPage.vue"),
    meta: {
      title: "登录",
      hidden: true,
    },
  },
];

const router = createRouter({
  history: createWebHistory(),
  routes,
});

export default router;
